import config from "@/config"
import http from "@/utils/request"

export default {
	getMovie: {
		url: `${config.API_URL}/cms/creator/movie/list`,
		name: "电影列表",
		get: async function(params={}){
			return await http.get(this.url, params);
		}
	},
	getMovieDetail: {
		url: `${config.API_URL}/cms/creator/movie/`,
		name: "获取电影详情",
		get: async function(params){
			return await http.get(this.url + params);
		}
	},
	uploadMovie: {
		url: `${config.API_URL}/cms/creator/movie/save`,
		name: "上传电影数据",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
  delMovie: {
    url: `${config.API_URL}/cms/creator/movie/`,
    name: "删除movie数据",
    delete: async function(params){
        return await http.delete(this.url+params);
    }
  }
}
